package ch1;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestGaowei {
    public static void main(String[] args) {
        int k=3;
        int n=k;
        int weishu=0;
        int g=1;
        while (n>=10){
            g*=10;
            n/=10;
        }
        System.out.println(g);
        weishu=k%g;
        System.out.println(weishu);
    }
}
